﻿using S7.Net;
using ZR.Model.Models.ProductionControl;

namespace CKS.PLC.Core
{
    public interface IDecodeValue
    {
        List<CksPlcDataPosition> AllPositions { get; set; }
        List<DecodeValue> AllValues { get; set; }
        bool IsChange { get; }
        List<CksPlcDataPosition> LinkPositions { get; set; }
        object OldValue { get; set; }
        Plc plcSession { get; set; }
        CksPlcDataPosition Position { get; set; }
        object Value { get; set; }

        object GetLinkData(int DataId);
        CksPlcDataPosition GetPosition(int db, int action, int dataid = 0);
    }
}